﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using CCWin;
namespace InterfaceView
{
    public partial class Media : CCSkinMain
    {
        //public AxWMPLib.AxWindowsMediaPlayer axWindowsMediaPlayer1;
        public Media()
        {
            InitializeComponent();
            //InitVedio();
        }
        private void Media_Load(object sender, EventArgs e)
        {
            //InitVedioUrl();
            //InitEvent();
           axWindowsMediaPlayer1.URL = @"E:\C#项目\InterfaceView\Video\video.mp4";
            if ((int)axWindowsMediaPlayer1.playState == 1)
            {
                //停顿2秒钟再重新播放
                System.Threading.Thread.Sleep(2000);
                //重新播放
                axWindowsMediaPlayer1.Ctlcontrols.play();
            }
        }

        private void skinButton1_Click(object sender, EventArgs e)
        {
            this.Close();
            Select select = new Select();
            select.Show();
        }

        private void skinButton2_Click(object sender, EventArgs e)
        {
            //System.Diagnostics.Process.Start("http://aliyun492525.siteyun.cn/");
            System.Diagnostics.Process.Start("http://115.28.81.143");
        }

        private void skinButton3_qq_Click(object sender, EventArgs e)
        {
            System.Diagnostics.Process.Start("http://wpa.qq.com/msgrd?v=3&uin=1145196245&site=qq&menu=yes");
        }
    }
}
